package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FootprintsMapper;
import com.ruoyi.system.domain.Footprints;
import com.ruoyi.system.service.IFootprintsService;

/**
 * 足迹Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-04
 */
@Service
public class FootprintsServiceImpl implements IFootprintsService 
{
    @Autowired
    private FootprintsMapper footprintsMapper;

    /**
     * 查询足迹
     * 
     * @param id 足迹主键
     * @return 足迹
     */
    @Override
    public Footprints selectFootprintsById(Long id)
    {
        return footprintsMapper.selectFootprintsById(id);
    }

    /**
     * 查询足迹列表
     * 
     * @param footprints 足迹
     * @return 足迹
     */
    @Override
    public List<Footprints> selectFootprintsList(Footprints footprints)
    {
        return footprintsMapper.selectFootprintsList(footprints);
    }

    /**
     * 新增足迹
     * 
     * @param footprints 足迹
     * @return 结果
     */
    @Override
    public int insertFootprints(Footprints footprints)
    {
        return footprintsMapper.insertFootprints(footprints);
    }

    /**
     * 修改足迹
     * 
     * @param footprints 足迹
     * @return 结果
     */
    @Override
    public int updateFootprints(Footprints footprints)
    {
        return footprintsMapper.updateFootprints(footprints);
    }

    /**
     * 批量删除足迹
     * 
     * @param ids 需要删除的足迹主键
     * @return 结果
     */
    @Override
    public int deleteFootprintsByIds(Long[] ids)
    {
        return footprintsMapper.deleteFootprintsByIds(ids);
    }

    /**
     * 删除足迹信息
     * 
     * @param id 足迹主键
     * @return 结果
     */
    @Override
    public int deleteFootprintsById(Long id)
    {
        return footprintsMapper.deleteFootprintsById(id);
    }
}
